from django.urls import path
from . import views

urlpatterns = [
    path('', views.index, name='index'),
    path('index/', views.index, name='index'),
    path('forgot_password/', views.forgot_password, name='forgot_password'),
    path('reset_pwd/', views.reset_pwd, name='reset_pwd'),
    path('captcha_image/', views.captcha_image, name='captcha_image'),
    # 返回注册页面
    path('signin/', views.sign_in, name='signin'),
    # 将注册的数据写入后端数据库中
    path('upload_signin_info/', views.upload_signin_info, name='upload_signin_info'),
    # 返回登录页面
    path('login/', views.login, name='login'),
    path('logout_view/', views.logout_view, name='logout_view'),
    # 对比登录上传的账号和密码是否正确
    path('login_info/', views.login_info, name='login_info'),
    # 返回学生复试信息表中的复试信息
    path('input_stu_info/', views.input_stu_info, name='input_stu_info'),
    # 返回复试组的后台管理页面
    path('registration/', views.registration_info, name='registration_info'),
    # 绑定复试组后台管理页面的开始复试的函数
    path('start_registration', views.start_registration, name='start_registration'),
    # 返回学生主页
    path('stu_index', views.stu_index, name='stu_index'),
    # 复试组后台的搜索功能、在学生信息表中选取相对应的数据
    path('search_in_registration', views.search_in_registration, name='search_in_registration'),
    # 导师部分的视图函数
    # 获取到与导师绑定的相关学生信息
    path('tech_stu_info', views.tech_stu_info, name='tech_stu_info'),
    # 获取导师本人的相关信息
    path('teacher_index/', views.teacher_index, name='teacher_index'),
    # 导师后台设置
    # 导师的个人主页

    # 返回学校主页
    path('school_index', views.school_index, name='school_index'),
    # 学生个人主页的复试信息表的相关信息
    path('stu_second_info/', views.stu_second_info, name='stu_second_info'),

    # 导师信息页面
    path('teacher_information', views.teacher_information, name='teacher_information'),
    # 学科信息页面
    path('subject_information', views.subject_information, name='subject_information'),
    # 推免招生页面
    path('recommended_admission', views.recommended_admission, name='recommended_admission'),
    # 硕士招生页面
    path('master_admission', views.master_admission, name='master_admission'),
    # 博士招生页面
    # 主页的注册登录的重定向
    path('index_sign', views.index_sign, name='index_sign'),
    path('index_login', views.index_login, name='index_login'),
    # 复试组进行复试之后提交信息
    path('registory_info/', views.registory_info, name='registory_info'),
    path('check_result', views.check_result, name='check_result'),
    # 管理员用户界面
    # 学科表
    path('sub/', views.subject_info, name='sub'),
    path('add_subject/', views.add_subject, name='add_subject'),
    path('delete_subject/<str:subject_id>/', views.delete_subject, name='delete_subject'),
    path('edit_subject/<str:subject_id>/', views.edit_subject, name='edit_subject'),
    path('get_subject/<str:subject_id>/', views.get_subject, name='get_subject'),

    # 学生表
    path('stu/', views.student_info, name='stu'),
    path('add_student/', views.add_student, name='add_student'),
    path('delete_student/<str:idnumber>/', views.delete_student, name='delete_student'),
    path('edit_student/<str:idnumber>/', views.edit_student, name='edit_student'),
    path('get_student/<str:idnumber>/', views.get_student, name='get_student'),
    # 导师表
    path('tea/', views.teacher_info, name='tea'),
    path('add_teacher/', views.add_teacher, name='add_teacher'),
    path('delete_teacher/<str:instructorid>/', views.delete_teacher, name='delete_teacher'),
    path('edit_teacher/<str:instructorid>/', views.edit_teacher, name='edit_teacher'),
    path('get_teacher/<str:instructorid>/', views.get_teacher, name='get_teacher'),
    # 初试表
    path('fir/', views.firstscore_info, name='fir'),
    path('add_firstscore/', views.add_firstscore, name='add_firstscore'),
    path('delete_firstscore/<str:examnumber>/', views.delete_firstscore, name='delete_firstscore'),
    path('edit_firstscore/', views.edit_firstscore, name='edit_firstscore'),
    # path('get_firstscore/<str:examnumber>/', views.get_firstscore, name='get_firstscore'),
    # 复试表
    path('sec/', views.secondscore_info, name='sec'),
    path('add_secondscore/', views.add_secondscore, name='add_secondscore'),
    path('delete_secondscore/<str:examnumber>/', views.delete_secondscore, name='delete_secondscore'),
    path('edit_secondscore/', views.edit_secondscore, name='edit_secondscore'),
    # path('get_secondscore/<str:examnumber>/', views.get_secondscore, name='get_secondscore'),
    # 招生表
    path('enro/', views.enrollment_info, name='enro'),
    path('add_enrollment/', views.add_enrollment, name='add_enrollment'),
    path('delete_enrollment/<str:instructorid>/', views.delete_enrollment, name='delete_enrollment'),
    path('edit_enrollment/<str:instructorid>/', views.edit_enrollment, name='edit_enrollment'),
    # path('get_enrollment/<str:instructorid>/', views.get_enrollment, name='get_enrollment'),
    # 双向表
    path('stutea/', views.stutea_info, name='stutea_info'),
    path('add_firstscore/', views.add_firstscore, name='add_firstscore'),
    path('add_secondscore/', views.add_secondscore, name='add_secondscore'),
    # 通用管理员页面
    path('admin/', views.admin, name='admin'),
    # 研究生主管领导管理页面
    path('admin_leader/', views.Graduate_supervisor_leadership, name='Graduate_supervisor_leadership'),
    # 学科秘书管理页面
    path('admin_Ssecretary/', views.Subject_Secretary, name='Subject_Secretary'),
    # 学科负责人管理页面
    path('admin_head/', views.Head_of_Discipline, name='Head_of_Discipline'),
    # 研究生主管秘书管理页面
    path('admin_Gsecretary/', views.Graduate_supervisor_Secretary, name='Graduate_supervisor_Secretary'),
    # 测试导师拒绝学生之后的流程视图函数
    path('test/', views.test, name='test'),
    path('search_result/', views.search_result, name='search_result')
]